package cn.edu.sdjzu.xg23.kcsj01_backend.mapper;

import cn.edu.sdjzu.xg23.kcsj01_backend.entity.ApprovalDepartment;
import cn.edu.sdjzu.xg23.kcsj01_backend.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DepartmentMapper {

    @Select("SELECT id, name, description, code FROM department")
    List<Department> getAllDepartments();


}